﻿<div class="commentView" data-bind="foreach:comments">
    <div data-bind="css: { 'comment-author': isAuthor }">
        <div class="comment-header">
            <a data-bind="attr: { name: id }"></a>
            Commented by
            <span data-bind="ifnot: url">
                <span data-bind="text: name"></span>
            </span>
            <span data-bind="if: url">
                <a data-bind="attr: {href: url}, text:name" target="_blank"></a>
            </span>
            <span>at&nbsp;<span data-bind="text: time"></span></span>
            <div class="comment-link" data-bind="visible: showPostLink">
                <a href="#" data-bind="attr: {'href': postLink}">View Post</a>
            </div>
        </div>
        <div class="comment" data-bind="html: comment"></div>
    </div>
</div>


